home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000046_fdc@columbia.edu_Mon Dec 8 09:16:41 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Command line switches
  5. Date: 8 Dec 2003 14:15:28 GMT
  6. Organization: Columbia University
  7. Lines: 46
  8. Message-ID: <slrnbt91s0.o2u.fdc@sesame.cc.columbia.edu>
  9. References: <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1070892928 12902 128.59.59.56 (8 Dec 2003 14:15:28 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 8 Dec 2003 14:15:28 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14722
  17.  
  18. In article <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com>,
  19. Chris@bundy.co.uk wrote:
  20. : Im trying to get Kermit to record text data that
  21. : im sending to the serial port, and write a log
  22. : file. I can do this manually but I just cant quite
  23. : get it to work using command line switches.
  24. : the closes i've got is
  25. : server01# /usr/kermit/work/kermit -l /dev/cuaa0 -b
  26. : 9600 -C"log session /var/log/session.log" -c
  27. : this monitors the port OK but does not write the
  28. : log file. which I want it to append to.
  29. The -C command-line argument is not treated in sequence with
  30. the others.  The order in which command sources are handled
  31. is listed on page 462 of "Using C-Kermit".  The -C option is
  32. handled after all other command-line options.  Anyway, you're
  33. missing a space after -C.
  34.  
  35. It's usually best not to mix and match command-line options and
  36. interactive commands.  Command-line options give you access to
  37. a small subset of Kermit's functions.  When you need more than
  38. that, use the command language.  To do what you want, create a
  39. little file containing:
  40.  
  41.   #!/usr/kermit/work/kermit
  42.   set modem type none
  43.   set line /dev/cuaa0
  44.   if fail exit 1
  45.   set exit warning off
  46.   set speed 9600
  47.   log session /var/log/session.log
  48.   if fail exit 1
  49.   connect
  50.  
  51. give it execute permission, and run it instead of the Kermit
  52. binary.  You can also replace the CONNECT command with any
  53. desired further automated interactions, as described in the
  54. script-writing tutorial:
  55.  
  56.   http://www.columbia.edu/kermit/ckscripts.html#tut
  57.  
  58.  
  59. - Frank
  60.